package com.charlee.mapper;

import com.charlee.entity.User;

import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by charlee on 17-6-10 version v1.0.0
 */
@Repository
public interface UserMapper {

	User findUserByUsernameAndPassword(String username, String password);

	// @Select("select * from db_user where username=#{username}")
	// User findByUsername(@Param("username") String username);

	User findByUsername(String username);

	List<User> findAllUser();
}
